package fr.isima.gui.tag;

import android.content.Context;
import android.view.LayoutInflater;
import android.widget.RelativeLayout;
import android.widget.TextView;
import fr.isima.R;

public class TrackItem extends RelativeLayout
{    
    
    /** Debug Tag */
    private static final String  TAG = "TrackItem";
    
    public TrackItem(Context context, String name, String Date)
    {
        super(context);        
        
        String inflater = Context.LAYOUT_INFLATER_SERVICE;
        LayoutInflater li = (LayoutInflater) getContext().getSystemService(inflater);
        
        li.inflate(R.layout.track_item, this,true);
        
        TextView nameView = (TextView) findViewById(R.id.trackName);
        TextView dateView = (TextView) findViewById(R.id.trackDate);
        nameView.setText(name);
        dateView.setText(Date);
    }    
}
    